package com.springcloud.hystrix.dao;

import com.springcloud.hystrix.dao.impl.DaohiImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-provision",fallback = DaohiImpl.class)
public interface Daohi {
    @RequestMapping(value = "/hi",method = RequestMethod.GET)
    String getHI(@RequestParam(value = "name")String name);
}
